//package com.xnyzc.lhy.mis.controller.cmsapi.reassignment;
//
//import com.xnyzc.lhy.common.entity.Rv;
//import com.xnyzc.lhy.mis.entity.param.cms.price.PriceParam;
//import com.xnyzc.lhy.mis.entity.system.OaSysReassignmentGroup;
//import com.xnyzc.lhy.mis.service.cms.price.ReassignmentService;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * 司机改派规则费用模板相关
// *
// */
//@RestController
//@RequestMapping("/cms/api/Reassignment")
//public class ReassignmentController {
//    @Autowired
//    private ReassignmentService reassignmentService;
//
//    /**
//     * 新增或修改改派规则组
//     *
//     * @return
//     */
//    @ApiOperation(value = "新增或修改改派规则组", notes = "新增或修改改派规则组")
//    @PostMapping(value = "/addOrUpdateReassignmentGroup")
//    public Rv addOrUpdateReassignmentGroup(
//            @ApiParam(name = "priceParam", value = "新增或修改改派规则组") @RequestBody OaSysReassignmentGroup ruleGroup
//    ) {
//        return Rv.wrap(reassignmentService.addOrUpdateReassignmentGroup(ruleGroup));
//    }
//
//    /**
//     * 获取改派规则组列表
//     *
//     * @return
//     */
//    @ApiOperation(value = "获取改派规则组列表", notes = "获取改派规则组列表")
//    @PostMapping(value = "/getReassignmentGroup")
//    public Rv getReassignmentGroup(
//            @ApiParam(name = "priceParam", value = "获取改派规则组列表") @RequestBody PriceParam priceParam
//    ) {
//        return Rv.wrap(reassignmentService.getReassignmentGroup(priceParam));
//    }
//
//    /**
//     * 新增或修改改派费用模板
//     *
//     * @return
//     */
//    @ApiOperation(value = "新增或修改改派费用模板", notes = "新增或修改改派费用模板")
//    @PostMapping(value = "/addOrUpdateReassignmentTemplate")
//    public Rv addOrUpdateReassignmentTemplate(
//            @ApiParam(name = "param", value = "新增或修改改派费用模板") @RequestBody OaSysReassignmentGroup param
//    ) {
//        return Rv.wrap(reassignmentService.addOrUpdateReassignment(param));
//    }
//
//    /**
//     * 获取派费用模板详情
//     *
//     * @return
//     */
//    @ApiOperation(value = "获取派费用模板模详情", notes = "获取派费用模板详情")
//    @PostMapping(value = "/getReassignmentTemplateDetails")
//    public Rv getReassignmentTemplateDetails(
//            @ApiParam(name = "priceParam", value = "获取派费用模板详情") @RequestBody PriceParam priceParam
//    ) {
//        return Rv.wrap(reassignmentService.getReassignmentDetails(priceParam));
//    }
//
//}
